<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="/WEB-INF/c.tld"%>
<%@ taglib prefix="fmt" uri="/WEB-INF/fmt.tld"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!-- saved from url=(0033)http://beijing.haozu.com/listing/ -->
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

		<title>租房，买房</title>
		<link rel="stylesheet" rev="stylesheet" href="<%=basePath %>css/Listing_Index.css"
			type="text/css">
	</head>
	<body id="haozu">
	<div class="top">
			<div class="logo_icon">
				租房网logo
			</div>
					<ul class="nav">
				<li class="select">
					<a href="<%=basePath%>index.do">租房</a>
				</li>
				<li >
					<a href="<%=basePath%>sell/list.do">买房</a>
				</li>
				</ul>
		
			
			<div class="clear"></div>
		</div>
		<div id="content">
			<div class="simple_info_box">
				<div class="info_title">
					<h1>
						${home.name}
					</h1>
					<label class="pl_10">
						发布时间：
					</label>
					<fmt:formatDate pattern="yyyy-MM-dd" value="${h.publishDate}" />
				</div>
				<dl class="info_content">
					<dd>
						租金：
						<span class="red20b">${home.price}</span>元/月
					</dd>
					<dd></dd>
					<dd>
						户型：
						<span class="red14b"> <c:forEach var="type"
								items="${houseTypeList}">
								<c:if test="${home.houseType == type.code}">${type.name}</c:if>
							</c:forEach> </span>
					</dd>
					<dd>
						出租面积：${home.area }平米
					</dd>
					<dd>
						<c:if test="${home.rentWay=='all'}">[整租]</c:if>
						<c:if test="${home.rentWay=='half'}">[合租]</c:if>

					</dd>
					<dt class="clear" style="height:0;"></dt>
				</dl>
				<dl class="info_content">
					<dt>
						地址：
						<span class="blue14">${home.address }</span>
					</dt>
					<dd>
						楼层：${home.floor}
					</dd>
					<dd>
						朝向：
				 <c:if test="${home.face=='E'}">朝东</c:if>
				 <c:if test="${home.face=='S'}">朝南</c:if>		     
				 <c:if test="${home.face=='W'}">朝西</c:if>
				 <c:if test="${home.face=='N'}">朝北</c:if>
					</dd>
					<dd>
						装修：<c:forEach var="fix" items="${fixList}">
								<c:if test="${fix.code==h.fix}">${fix.name}</c:if>	
							</c:forEach>
					</dd>
					<dd>
						房龄：<c:forEach var="age" items="${houseAgeList}">
								 <c:if test="${age.code==home.houseAge}">${age.name}</c:if>
							</c:forEach>
						
					</dd>
					<dd>
						用途：<c:forEach var="use" items="${houseUseList}">
								 <c:if test="${use.code==home.houseUse}">${use.name}</c:if>
							</c:forEach>
					</dd>
					<dt>
						配置：${home.provide}
					</dt>
					<dt class="clear" style="height:0;"></dt>
				</dl>
				<div class="image_box">
					<h2>
						房源图片：
					</h2>
					<c:choose>
						<c:when test="${home eq null || home.smallIcon eq null || home.smallIcon eq ''}">
							<img src="<%=basePath%>images/default_image.gif" width="400" height="400"/>
						</c:when>
						<c:otherwise>
							<img src="<%=basePath%>img/${home.smallIcon}" width="400" height="400"/>
						</c:otherwise>
					</c:choose>
				</div>
				<div class="clear"></div>
			</div>
		</div>
	</body>
</html>
